package cn.wolfcode.shop.mapper;

import cn.wolfcode.shop.domain.UserLogin;import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface UserLoginMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserLogin record);

    UserLogin selectByPrimaryKey(Long id);

    List<UserLogin> selectAll();

    int updateByPrimaryKey(UserLogin record);

    int getCountByUsername(String username);

    //多参数传递使用@param注解
    UserLogin login(@Param("username")String username, @Param("password")String password);
}
